package com.gticket.buyticket.service.serviceimpl;



import com.gticket.buyticket.mapper.FilmScheduleMapper;
import com.gticket.buyticket.pojo.FilmSchedule;
import com.gticket.buyticket.service.FilmScheduleService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Data
@Transactional
public class FilmScheduleServiceImpl implements FilmScheduleService {

    @Autowired
    private FilmScheduleMapper filmScheduleMapper;

    @Override
    public List<FilmSchedule> getFilmSchedule(FilmSchedule filmSchedule) {
        return filmScheduleMapper.getFilmSchedule(filmSchedule);
    }

    @Override
    public List<String> getFilmDate(FilmSchedule filmSchedule) {
        return filmScheduleMapper.getFilmDate(filmSchedule);
    }

    @Override
    public FilmSchedule getOneFilmSchedule(FilmSchedule filmSchedule) {
        return filmScheduleMapper.getOneFilmSchedule(filmSchedule);
    }
}
